<%--
  Created by IntelliJ IDEA.
  User: student
  Date: 2019/9/20
  Time: 12:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basepath %>"/>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台大布局 - Layui</title>
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        #body {
            overflow: hidden;
        }
        #iframeBox {
            width:100%;
            border:0;
            height: 100%;
            padding:0px 0px 0px 10px;
        }
        #iframeBox1 {
            width:100%;
            border:0;
            height: 100%;
            padding:0px 0px 0px 10px;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    <div class="layui-header">
        <div class="layui-logo">欢迎使用app管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    你好：
                    ${sessionScope.user.devname}


                </a>
                <dl class="layui-nav-child">

                </dl>
            </li>
            <li class="layui-nav-item"><a href="dele">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">APP账户管理</a>
                    <dl class="layui-nav-child">

                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">APP应用管理</a>
                    <dl class="layui-nav-child">

                        <dd><a href="javascript:; " id="dev/tolist" >APP维护</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->

        <h1>欢迎您：  ${sessionScope.user.devname} | 角色:开发者账户 </h1>
        <iframe id="iframeBox">

        </iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script src="static/layui/layui.all.js"></script>

<script>
    layui.use(['form', 'layer', 'jquery'], function (form, layer, $) {
        $(".layui-nav-child dd a").click(function () {
            var target = $(this).attr("id");
            $("iframe").attr("src", target);
            $("h1").remove();
        });

    });
</script>

<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
</script>

<script type="text/javascript">
   /* function reinitIframe(){
        var iframe = document.getElementById("iframeBox");
        try{
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height =  height;
            console.log(height);
        }catch (ex){}
    }
    window.setInterval("reinitIframe()", 200);*/
</script>
</body>
</html>
